const mongoose = require('mongoose')

let db = mongoose.connect('mongodb://localhost:27018/vue_project', { useNewUrlParser: true, useUnifiedTopology: true }, function(err) {
    if (err) {
        console.log(err)
    }
    console.log('数据库连接成功')
})

module.exports = db;